package org.thread.test02.demo03;

import java.util.Random;

/**
 *
 *  @author ZJL
 *  @date 2025-03-07
 */public class RGBColor extends Thread {
     private String colorName;

    @Override
    public void run() {
        int color = new Random().nextInt(256);
        System.out.println(this.colorName+"："+color);
    }
    public RGBColor(String name) {
        this.colorName = name;
    }
}
